#!/bin/bash

export PATH=${PATH}:/opt/arm-hisiv300-linux/bin

export TARGET=arm-hisiv300-linux-uclibcgnueabi
export CROSS=arm-hisiv300-linux-uclibcgnueabi
export BUILD=x86_64-pc-linux-gnu

export CROSSPREFIX=${CROSS}-

export GCC=${CROSSPREFIX}g++

SCRIPT_DIR=$(cd `dirname $0` && pwd)
cd $SCRIPT_DIR

cd wsdd || exit 1

make clean
make release || exit 1
mkdir -p $SCRIPT_DIR/_install/bin
cp wsdd $SCRIPT_DIR/_install/bin/
